<?php
/**
 * Created by PhpStorm.
 * User: iamya
 * Date: 2017/10/10
 * Time: 10:39
 */

namespace app\circle\model;


use think\Validate;

class ThreplyModel extends BaseModel
{
    protected $name = 'circle_threply'; //定义用户表
    //开启自动写入时间戳
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    // 定义自动完成的属性
    protected $auto = []; //新增修改
    protected $insert = []; //插入
    protected $update = []; //修改

    protected function getReplyAttr($value, $data)
    {
        return $this->where('reply_replyid',$data['reply_id'])->select();
    }

}